import request from '@/utils/request'
var group_name = 'admin'
export function login(data) {
    return request({
        url: `/${group_name}/login`,
        method: 'post',
        data
    })
}

export function getInfo() {
    return request({
        url: `/${group_name}/info`,
        method: 'get'
    })
}

export function logout() {
    return request({
        url: `/${group_name}/logout`,
        method: 'post'
    })
}